<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head th:fragment="head(title)">
    <meta charset="UTF-8">
    <!--移动端预览-->
    <meta name="viewport" content="device-width, initial-scale=1.0">
	<title th:replace="${title}">后台管理-分类管理</title>
	<link rel="stylesheet" th:href="@{/css/semantic.min.css}">
	<!--引入自定义CSS-->
	<link rel="stylesheet" th:href="@{/css/me.css}">
	 <!--引入Markdown插件所需要的CSS-->
    <link rel="stylesheet" th:href="@{/lib/editormd/css/editormd.min.css}" />
</head>
<body> 
<!--导航-->
<nav th:fragment="menu(n)" class="ui inverted attached segment segment m-padded-tb-mini m-shadow-small">
    <div class="ui container">
        <div class="ui inverted secondary stackable menu">
            <h3 class="ui teal header item">
            	<a th:href="@{/admin/index}" class="ui teal header">后台管理</a>
            </h3>
            <a th:href="@{/admin/blogs}" class="m-item item m-mobile-hide" th:classappend="${n==1}?'active'"><i class="small home icon"></i>博客管理</a>
            <a th:href="@{/admin/types}" class="m-item item m-mobile-hide" th:classappend="${n==2}?'active'"><i class="small idea icon"></i>分类管理</a>
            <a th:href="@{/admin/tags}" class="m-item item m-mobile-hide" th:classappend="${n==3}?'active'"><i class="small tags icon"></i>标签管理</a>
            <a  class="m-item item m-mobile-hide" th:classappend="${n==4}?'active'"><i class="small idea icon"></i>个人信息</a>
            <div class="right m-item m-mobile-hide menu">
                <div class="ui dropdown item">
                    <div class="text ">
                        <img  class="ui avatar image" th:src="${session.user.avatar}" src="https://picsum.photos/id/1011/100/100">
                    [[${session.user.nickname}]]    		
                    </div>
                    <i class="dropdown icon"></i>
                    <div class="menu">
                       <a th:href="@{/admin/logout}"  class="item">注销</a>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!--menu toggle无任何显示意思-->
    <a href="#" class="ui icon menu toggle black button m-right-top m-mobile-show">
        <i class="sidebar icon"></i>
    </a>
</nav>

<!--底部-->
<footer th:fragment="footer" class="ui inverted vertical segment m-padded-tb-massive ">
  <div class="ui center aligned container ">
      <div class="ui inverted divided stackable grid">
          <div class="three wide column">
              <div class="ui inverted link list">
                  <h4 class="ui inverted header m-opacity-min">站长微信</h4>
                  <div class="item">
                      <img th:src="@{/images/loginTX.png}" src="../../static/images/WeChat.jpg" CLASS="ui rounded image" alt="" style="width:110px">
                  </div>
              </div>
          </div>
          <div class="three wide column">
              <h4 class="ui inverted header m-opacity-min">最新博客</h4>
              <div class="ui inverted link list">
                  <a href="#" class="item">2019一年收获总结</a>
                  <a href="#" class="item">idea的操作笔记</a>
                  <a href="#" class="item">SpringBoot学习计划</a>
              </div>
          </div>
          <div class="three wide column">
              <h4 class="ui inverted header m-opacity-min">联系作者</h4>
              <div class="ui inverted link list">
                  <a href="#" class="item">XXXXX</a>
                      <a href="#" class="item">XXXXX</a>
                  <a href="#" class="item">XXXXX</a>
              </div>
          </div>
          <div class="seven wide column">
              <h4 class="ui inverted header m-opacity-min">关于作者</h4>
              <p class="m-text-thin m-text-spaced m-opacity-min m-text-lined">XXXXXXXXXXXXXXXXXXXX
              XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX</p>
          </div>
      </div>
      <!--分割线-->
        <div class="ui inverted section divider"></div>
        <p class="m-text-thin m-text-spaced m-opacity-tiny">Copy © 2019 - 2020 作者:小白</p>
    </div>
</footer>
<!--引入jQuery-->
<script th:src="@{/js/jquery-3.4.1.min.js}" src="https://cdn.jsdelivr.net/npm/jquery@3.2/dist/jquery.min.js"></script>
<script th:src="@{/js/semantic.min.js}" src="https://cdn.jsdelivr.net/semantic-ui/2.2.4/semantic.min.js"></script>
</body>
</html> 